import http from '@/utils/http'
/**
 * 轮播图请求
 * @returns
 */
export function getHomeBanner () {
  return http({
    url: '/home/banner',
    data: {
      distributionSite: 1
    }
  })
}
/**
 * 前台分类请求
 */
export function getCategorylist () {
  return http({
    url: '/home/category/mutli'
  })
}
/**
 * 人气推荐请求
 */
export function getHotlist () {
  return http({
    url: '/home/hot/mutli'
  })
}
/**
 * 新鲜好物请求
 */
export function getNewlist () {
  return http({
    url: '/home/new'
  })
}
/**
 * 猜你喜欢
 */
export function getGuessLike (data) {
  return http({
    url: '/home/goods/guessLike',
    data
  })
}
/**
 *
 * @param {*} url 路径
 * @param {*} data 数据
 * @returns
 */
export function getRecommend (url, data) {
  return http({
    url,
    data
  })
}
